package hhm.android.library

import android.util.Log

class LogUtils {
    companion object {
        var debug = BuildConfig.DEBUG
        const val tag = "hhm-frame"

        fun v(t: String?, s: String) {
            if (debug) {
                Log.v(t ?: tag, s)
            }
        }

        fun d(t: String?, s: String) {
            if (debug) {
                Log.d(t ?: tag, s)
            }
        }

        fun i(t: String?, s: String) {
            if (debug) {
                Log.i(t ?: tag, s)
            }
        }

        fun e(t: String?, s: String) {
            if (debug) {
                Log.e(t ?: tag, s)
            }
        }

        fun w(t: String?, s: String) {
            if (debug) {
                Log.w(t ?: tag, s)
            }
        }
    }
}